#ifndef BACKUPQUE_H
#define BACKUPQUE_H

#include <QWidget>
#include <QTableWidget>
#include <QDebug>
#include "pcb.h"
#include <QQueue>
#include <QMenu>

namespace Ui {
class backupQue;
}

class backupQue : public QWidget
{
    Q_OBJECT

public:
    explicit backupQue(QWidget *parent = nullptr);
    ~backupQue();

    void initQueue();
    void refreshAgain();
    QQueue<PCB*> getBackup();
    bool addBackup(PCB*);
    void delFirst();
    PCB* getHead();

private slots:
    void on_refresh_clicked();

private:
    Ui::backupQue *ui;
    QQueue<PCB*> backup;
    int num_in_backup;
};

#endif // BACKUPQUE_H
